import java.util.Scanner;

public class Main {

	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		int n,a,b;
		while(sc.hasNext())
		{
			StringBuilder str1=new StringBuilder("");
			n=sc.nextInt();
			a=sc.nextInt();
			b=sc.nextInt();
			
			for(int i=0;i<n;i++)
			{
				str1.append(i);
			}
			String str2="";
			str2=str1.substring(a, b);

			System.out.println(str2);
			
		}
		}
}